package cn.doitedu.datayi.data_service.service;

import cn.doitedu.datayi.data_service.dao.SessionQueryDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

@Service
public class SessionQueryServiceImpl implements SessionQueryService {

    @Autowired
    SessionQueryDao sessionQueryDao;

    @Override
    public List<String> query(Integer limit) throws IOException {

        return sessionQueryDao.query(limit);
    }



    @Override
    public List<String> queryByProvince(String province) throws IOException {

        return sessionQueryDao.queryByProvince(province);
    }



    @Override
    public List<String> queryByCondition(String value) throws IOException {

        return sessionQueryDao.queryByCondition(value);
    }
}
